package treazy.ultimate.stats;

import android.app.ActionBar;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;

public class NewGameActivity extends Activity {
	private Button create;
	private Team team1;
	private Team team2;
	private Tournament tourney;
	private Button cancel;
	
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		
		//TODO	set new game layout
		
		//TODO	add click listener to "create game" button, reads input text from text boxes
		//		text boxes are: team 1 name, team 2 name
		//		use dropdown list to show possible tournaments game will be included in
		
		//TODO	add game to db
		
		//TODO 	move on to "current game" page
		
		//example from another page
//		setContentView(R.layout.newplayer);
//		
//		create = (Button) findViewById(R.id.createPlayerButton);
//		
//		final Bundle extras = getIntent().getExtras();
//	    if (extras != null) 
//	    	teamName = extras.getString("TeamName");
//		
//		create.setOnClickListener(new View.OnClickListener() {
//			public void onClick(View v){
//				EditText playerName = (EditText) findViewById(R.id.playerName);
//				
//				DatabaseHandler db = new DatabaseHandler(NewPlayerActivity.this);
//		        db.addPlayer(new Player(playerName.getText().toString(), teamName));
//				
//				Intent i = new Intent(getApplicationContext(), ViewRosterActivity.class);
//				i.putExtra("TeamName", teamName);
//				startActivity(i);
//				
//			}
//		});
//		
//		cancel = (Button) findViewById(R.id.cancelnewplayer);
//		
//		cancel.setOnClickListener(new View.OnClickListener() {
//			public void onClick(View v){
//				Intent i = new Intent(getApplicationContext(), ViewRosterActivity.class);
//				startActivity(i);
//				
//			}
//		});

	}

}
